import request from '@/utils/request'

// 查询设备应用可用时间列表
export function listDeviceAppUseTime(query) {
  return request({
    url: '/system/deviceAppUseTime/list',
    method: 'get',
    params: query
  })
}

// 查询设备应用可用时间详细
export function getDeviceAppUseTime(id) {
  return request({
    url: '/system/deviceAppUseTime/' + id,
    method: 'get'
  })
}

// 新增设备应用可用时间
export function addDeviceAppUseTime(data) {
  return request({
    url: '/system/deviceAppUseTime',
    method: 'post',
    data: data
  })
}

// 修改设备应用可用时间
export function updateDeviceAppUseTime(data) {
  return request({
    url: '/system/deviceAppUseTime',
    method: 'put',
    data: data
  })
}

// 删除设备应用可用时间
export function delDeviceAppUseTime(id) {
  return request({
    url: '/system/deviceAppUseTime/' + id,
    method: 'delete'
  })
}
